<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],

    //-------------------------------api
    //index
    'userinfo'     => ['api/index/userinfo',['method' => 'post']],
    'dologin'       => ['api/index/dologin',['method' => 'get']],
    'storeinfo'     => ['api/index/storeinfo',['method' => 'get']],
//    'banner'        => ['api/index/banner',['method' => 'get']]
    //goods
    'goods'         => ['api/goods/index',['method' => 'get']],
    'goodsinfo'     => ['api/goods/goodsinfo',['method' => 'get']],

    //moving
    'coupon'        =>['api/moving/index',['method' => 'get']],
    'moving'        =>['api/moving/moving',['method' => 'post']],
    'movinglist'    =>['api/moving/movinglist',['method' => 'get']],

    //order
    'order'         =>['api/order/index',['method' => 'get']],

    //address
    'address'       =>['api/address/index',['method' => 'get']],
    'addressadd'       =>['api/address/addressadd',['method' => 'post']],
    'addressinfo'       =>['api/address/addressinfo',['method' => 'get']],
    'addressup'       =>['api/address/addressup',['method' => 'post']],
    'addressdel'       =>['api/address/addressdel',['method' => 'get']],

    //pay
    'pay'           =>['api/pay/index',['method' => 'post']],


];
